package com.quick.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`order`")
@JsonInclude(JsonInclude.Include.ALWAYS) // 序列化时包含所有字段（覆盖全局配置）
public class Order implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String order_no;
    private Integer user_id;
    private Integer driver_id;
    private Integer payment_id;
    private Double start_longitude;
    private Double start_latitude;
    private String start_address;
    private String end_address;
    private Double end_longitude;
    private Double end_latitude;
    private LocalDateTime order_time;
    private LocalDateTime start_time;
    private LocalDateTime end_time;
    private Double estimated_price;
    private Integer status;
    private Integer isdel;
}
